package im.eg.springdemo2.stuffs2;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.stereotype.Component;

@Component
@ComponentScan("im.eg.springdemo2")
@EnableAspectJAutoProxy
public class AppConfig2 {
    @Bean
    public CService cService2() {
        return new CService("2");
    }

//    @Bean
//    public CService cService1() {
//        return new CService("1");
//    }
}
